package com.news.gpb.service;

import com.news.gpb.entity.Coll;
import com.news.gpb.entity.Comment;
import com.news.gpb.entity.Like;
import com.news.gpb.entity.News;

import java.util.List;

public interface NewsService {

    List<News> getNewsList(News news);
    List<News> getAllList(News news);
    List<News> getHotList();
    News getNewsDetail(int news_id);
    List<News> search(String keyword);
    Integer updateViews(News news);
    String getLike(Like like);
    String likeUp(Like like);
    String likeDown(Like like);
    String getCollect(Coll coll);
    String collectUp(Coll coll);
    String collectDown(Coll coll);
    List<News> getMyLike(int user_id);
    List<News> getMyCollect(int user_id);
}
